package com.example.demo.controller;

import com.jian.java.bean.User;
import com.jian.java.inter.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Jiange
 * @create 2021-05-23-15:57
 */
@RestController
public class UserServiceController {
    @Autowired
    UserService userService;

    @GetMapping("/")
    public int Get(User user){
        return userService.getAge(user);
    }
    
}
